class IssuesEvents
  attr_accessor :github

  def initialize(github)
    @github = github
  end

  def listIssueEvents(repo, issue_id, user=nil)
    url = 'repos/%s/%s/issues/%s/events' % [user, repo, issue_id]
    @github.get(url)
  end

  def listRepoIssueEvents(repo, user=nil)
    url = 'repos/%s/%s/issues/events' % [user, repo]
    @github.get(url)
  end

  def getEvent(repo, id, user=nil)
    url = 'repos/%s/%s/issues/events/%s' % [user, repo, id]
    @github.get(url)
  end
end